package com.example.pojo;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {

    private Integer userId;
    private String password;
    private String userName;
    private Integer userSex;
    private Integer delTag;
    private String userImg;

    @Override
    public String toString() {
        return "\nUser{" +
                "userId=" + userId +
                ", password='" + password + '\'' +
                ", userName='" + userName + '\'' +
                ", userSex=" + userSex +
                ", delTag=" + delTag +
                ", userImg='" + userImg + '\'' +
                '}';
    }

    //用户创建的订单列表
    private List<Orders> ordersList;

    public List<Orders> getOrdersList() {
        return ordersList;
    }

    public void setOrdersList(List<Orders> ordersList) {
        this.ordersList = ordersList;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.userId
     *
     * @return the value of user.userId
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.userId
     *
     * @param userId the value for user.userId
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.password
     *
     * @return the value of user.password
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public String getPassword() {
        return password;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.password
     *
     * @param password the value for user.password
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.userName
     *
     * @return the value of user.userName
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public String getUserName() {
        return userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.userName
     *
     * @param userName the value for user.userName
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.userSex
     *
     * @return the value of user.userSex
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public Integer getUserSex() {
        return userSex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.userSex
     *
     * @param userSex the value for user.userSex
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.delTag
     *
     * @return the value of user.delTag
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public Integer getDelTag() {
        return delTag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.delTag
     *
     * @param delTag the value for user.delTag
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setDelTag(Integer delTag) {
        this.delTag = delTag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column user.userImg
     *
     * @return the value of user.userImg
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public String getUserImg() {
        return userImg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column user.userImg
     *
     * @param userImg the value for user.userImg
     *
     * @mbggenerated Tue Dec 05 10:11:18 CST 2023
     */
    public void setUserImg(String userImg) {
        this.userImg = userImg == null ? null : userImg.trim();
    }
}